﻿{extend name="$_tpl_public_layout_danceadmin"/}


{block name="breadcrumb"}
<ol class="breadcrumb">
	<li class="breadcrumb-item"><a href="{:url('admin/index/index')}">{:config('system.site_title')}</a></li>
	<li class="breadcrumb-item"><a href="{:url('admin/agreement/index')}">{$sideName}</a></li>
</ol>
{/block}


{block name="pageheader"}
{$sideName}
{/block}


{block name="content"}
<div class="btn-group btn-group-toggle daui-btn-group daui-btn-group-orange mb-3">
	<a href="{:url('admin/config/index')}" class="btn btn-outline-lightgrey">
		系统配置
		<span class="daui-btn-group-badge"></span>
	</a>
	<a href="{:url('admin/agreement/index')}" class="btn btn-outline-lightgrey active">
		服务协议
		<span class="daui-btn-group-badge"></span>
	</a>
	<a href="{:url('admin/privacypolicy/index')}" class="btn btn-outline-lightgrey">
		隐私政策
		<span class="daui-btn-group-badge"></span>
	</a>
	<a href="{:url('admin/aboutus/index')}" class="btn btn-outline-lightgrey">
		关于我们
		<span class="daui-btn-group-badge"></span>
	</a>
	<a href="{:url('admin/companyintro/index')}" class="btn btn-outline-lightgrey">
		公司介绍
		<span class="daui-btn-group-badge"></span>
	</a>
</div>

<div class="card">
	<div class="card-body">
		<form method="post" action="{:url('admin/agreement/doSet')}" enctype="multipart/form-data" class="form-horizontal J_ajaxForm">
			<div class="form-group row">
				<label class="col-sm-2 control-label">服务协议</label>
				<div class="col-sm-10">
					<script id="container" name="data[agreement]" type="text/plain">{$info['agreement']|raw}</script>
				</div>
			</div>
			<div class="clearfix form-actions">
				<div class="offset-md-2 col-sm-10">
					<button type="submit" class="btn btn-primary btn-sm J_ajaxSubmit">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>
{/block}


{block name="script"}
<!-- 实例化编辑器 -->
<script type="text/javascript" src="__STATIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
var ue = UE.getEditor('container', {
	initialFrameWidth: '100%',
	initialFrameHeight: 160,
	autoHeightEnabled: true,
	autoFloatEnabled: true,
	elementPathEnabled: false,
});
</script>
{/block}